/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package sopraim.presenter.validate;

/**
 *
 * @author thomas
 */
public class UsernameCheckForm {
    public UsernameCheckForm(String username) throws Exception{
        if(username == null) 
            throw(new Exception("Error : username is empty"));
        if (username.trim().isEmpty())
            throw(new Exception("Error : username is only composed of space"));
    }
}
